import { LoadingOutlined } from '@ant-design/icons';

export default function MyButton({ text, loading, styles, onClick }: any) {
  return (
    <div className="myButtonWrap" style={styles}>
      <div className="con center" onClick={onClick}>
        {loading && <LoadingOutlined />}
        {text}
      </div>
      {loading && <p className="zz"></p>}
    </div>
  );
}
